package com.joinval.common.base.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: Entity基类
 */
@Data
@Accessors(chain = true)
@ApiModel
public class BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 行号
	 */
	@ApiModelProperty(value = "行号",name = "lineNo")
	private Long lineNo;

	/**
	 * 创建人
	 */
	@ApiModelProperty(value = "创建人",name = "createBy")
	private Long createBy;

	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间",name = "createTime")
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	/**
	 * 更新人
	 */
	@ApiModelProperty(value = "更新人",name = "updateBy")
	private Long updateBy;

	/**
	 * 更新时间
	 */
	@ApiModelProperty(value = "更新时间",name = "updateTime")
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;

	/**
	 * 是否删除
	 */
	@TableLogic
	@ApiModelProperty(value = "是否删除",name = "delFlag")
	private Integer delFlag;


}
